package com.chinasoft.mall.activity;

import java.util.List;

import android.os.Bundle;

import com.chinasoft.mall.R;
import com.chinasoft.mall.activity.adapter.CollectSpListAdapter;
import com.chinasoft.mall.activity.adapter.SpListAdapter;
import com.chinasoft.mall.model.response.GoodsByClassBean;
import com.chinasoft.mall.util.LocalDataCommend;
import com.chinasoft.mall.widget.LoadListView;

public class CollectListActivity extends BaseActivity {
	
	private LoadListView modellist;
	private CollectSpListAdapter mlAdapter;
	private List<GoodsByClassBean> gbcb;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.collectlist);
		initView();
	}

	private void initView() {
		modellist=(LoadListView) findViewById(R.id.collectlist);
		gbcb=LocalDataCommend.getGoodsListBean(this);
		mlAdapter=new CollectSpListAdapter((MainActivity)this.getParent(),gbcb);
		modellist.setAdapter(mlAdapter);
	}

	public void stateChangeCollect() {
		mlAdapter.stateChange();
	}
}
